package com.iltgcl.echovoicedemo.ui.base

import androidx.fragment.app.Fragment
import androidx.lifecycle.LiveData
import com.google.android.material.snackbar.Snackbar
import com.iltgcl.echovoicedemo.extensions.setupSnackbar

/**
 * @Author leicao
 * @Date 20-11-18 下午7:03
 */
abstract class BaseFragment: Fragment() {

    fun setupSnackbar(snackbarEvent: LiveData<Event<Int>>) {
        view?.setupSnackbar(viewLifecycleOwner, snackbarEvent, Snackbar.LENGTH_LONG)
    }
}